package com.cj.pojo;

import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Comment {
    private Long id;
    
    @NotEmpty
    private String content;
    
    @NotNull
    private Long articleId;
    
    @NotNull
    private Long userId;
    
    private Long parentId;
    
    @Enumerated(EnumType.STRING)
    private CommentStatus status;
    
    private Integer likeCount;
    
    private Integer isDeleted;
    
    private LocalDateTime createdAt;
    
    private LocalDateTime updatedAt;
}
